package com.xingmang.common.dto.admin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @auther: hansom
 * @Version: 1.0
 * @create 2023/6/30 9:54
 */
@ApiModel("OA分类新增请求")
@Data
public class OaCategorySaveDTO {
    @ApiModelProperty(value = "OA分类名称",required = true)
    @NotEmpty(message = "分类名称不能为空")
    private String categoryName;
    @ApiModelProperty(value = "OA分类图标",required = true)
    @NotEmpty(message = "分类图标不能为空")
    private String categoryLogo;
    @ApiModelProperty(value = "OA分类排序",required = true)
    @NotNull(message = "排序不能为空")
    private Integer categoryOrder;
}
